#!/bin/sh

# start/stop/restart the yabsm daemon.

usage="usage: $0 start|stop|restart"

if [ $# != 1 ]; then
   echo "$usage"
   exit 1
fi

case "$1" in
'start')
  echo "Starting yabsm daemon:  /usr/bin/yabsm"
  /usr/bin/yabsm daemon start
  ;;
'stop')
  echo "Stopping yabsm daemon:  /usr/bin/yabsm"
  /usr/bin/yabsm daemon stop
  ;;
'restart')
  echo "Restarting yabsm daemon:  /usr/bin/yabsm"
  /usr/bin/yabsm daemon restart
  ;;
*)
  echo "$usage"
  exit 1
esac
